﻿namespace CommonUtils
{
    public class Pair<TKey, TValue>
    {
        public TKey Key { get; }

        public TValue Value { get; }

        public Pair()
        => ConsoleUtil.Write("new Pair()");

        public Pair(TKey key, TValue value)
        {
            ConsoleUtil.Write("new Pair(TKey key, TValue value)");

            Key = key;
            Value = value;
        }

        public System.Collections.Generic.KeyValuePair<TKey, TValue> ToStruct()
        => new System.Collections.Generic.KeyValuePair<TKey, TValue>(Key, Value);

        public override string ToString()
        => ToStruct().ToString();
    }
}
